Removed unnecessary ->end() call.