Adding compass functionality