Added a logging object for debugging