Use List.mem instead List.exists and remove debug information