Added error handling for wrong products.