Added script to prevent negative quantity