Added auto rotation logic, now kind of working