Added distance and note range parameters.