Removed printf trace logs from the code.