Move various functions to monitor_template module
More spec refinements
Add factory email sequence