Fixed a bug; emails moved to config