Fixed file pull function