Print statements added for profiling