Dodana metoda rotate do TaskManager