Rotation class added in case there are issues with rotating the phone.