Pass max_arguments to serchilo_extract_keyword_and_arguments().
Fix: Remember $env['query'].
There is no semantic relation between these two blocks, so separate them.