Add prob type to predict function