Removing copies of variable