Combined rotateOBS and getOBS functions