Slimmed down the requirements and made it process just two arguments -path and -pattern