Add sonar and pit function.