Added processing of multiple -p parameters