Added new contains function.