Added legacy support for compass.