Made a loop

The loop is offsetting the input with offset