Debug code into main moved