Fix bug with precendence ordering
Document using function predicates
Write tests for using a custom handler