Moved debug statements before exception..