Removed std::cout debug printing