Cleaned from sending emails. I'm really sorry for deleting so much code.