Make goostats accept file names as input instead