Added compass processing