Add closest method.