Added compass functionality