Rewrite and corrected compass configuration