Added function and anonymous function support, added dispatcher