Debugging file input issue