Add orientation handling.