Adding the functional script.