Added rotation

It's slow but it's ok for now