Make `papply` command more flexible