Updated the compass offset handling