Removed unused 'err'