Changed logs and added mail