Added a slight bit of debugging
Reverted a change made in the wrong function ad added it where it belongs.