Fixing loop back bug, removing some debugs.