Added utility for text file inputs.