Moving email into script