Allow for inline definitions of callbacks