Adding functionality for the parameters -o and -p