Factored out the addX functions so that they can be reused by the logger