Adds generation of control script