Removed unused error variable.