Ball optimization