Started writing sonar input capture funtionality.