Added message format config parameter, fixes #1