Added rotate array