Added compass class.