Change reference to by-value