Added file support. Haven't tested yet though :(