Added events, templates engines, and debugging