Make offset and scale work