Added bearing computation