SMS: The science of instream flows