Removed unused quantity variable