Moving offset to a variable