Added file input function