Removed unnecessary copies