Changed second total_stock to reduce confusion