Trying to get pipi distribution to work correctly