Added ability to give direct path to source file instead of just folder