Added insert protection
remove email_script