Moving Template into final place
Passing on return value of application events and callbacks.