Improved ballmanager code and changed capture functions name to hold