More flexible settings and integration with email logger