Now works with several balls.