Added debugging.
Fix perm.