Add functions speed3 and near_obs