Move parameter parsing to params.py. Handle paths with multiple elements.