Removed unused error handling