Added some helper stuff; in the future, logging should be done through log4cplus