Implemented membership routine.