Reworking contains into a more generic find function.