More flexible cookbook for sonar