Debug output cleaned up. Consolidating outputs added.