Setting up and running the sonar