Added support for multiple balls