Added 3d rotation