Made sleep an optional parameter to Email