Added the logger class for debugging