How to use the scripted feature