The bottom-line improvement came amid revenue declines and softening consumer demand.