Removed unused method. Added debugging.