Add `contains' function.