Removed console logs or replaces with error messages