Added coded to handle Ball.