Add contains function.