Debug of code so far.