Works with external files