Moving debug code to main file to clean up Base Class.