Added testing and took out debug statement