Improved getFile function.