Added stdio.h for file I/O.