Created compare_with_external + other random fixes