Add logging and version number