Added the debug testing code