Fixed missing prog function in demo