Updated compass functionality