Added ball tracking functionality.