Deleted unused error handling