Removed unused error flag