Hurling errors if there is a problem