Made the -p flag work