Added device compass support.