Made machine accept files as input