Removed unused error checking