Implement file input