Added simple error handling to generate not weighed consumptions functionality