Removed unused read file function.