Refactor + script hook
Emails in dynamic