The increase was primarily attributable to the timing of pharmacy inventory purchases and resale activity , the timing of third party pharmacy plan payments , an increased investment in pharmacy inventory in support of maintaining higher in-stock conditions and the payment of a previously announced $ 3.5 million litigation settlement .