Added WIP mail func. Probably not working.