Pass model into rotate

- makes it slightly easier to test