Add support for multiple -x, -p options

Allow user to specify multiple -x and/or -p options