Now with configurable domain and address. Logging improved.