Give function in pen-demo.