Added function passAllBut to Selection class