My events improove speed, change max_number to quantiy_available processing