Separating twemail module from run code