Added pi0 algo