Removed unnecesary printing of error messages