Improves stock level check and transaction handling