Get correct variable for copying