Add security constraint to mark_as_best method