Added testing and debug code.