Writing body of the script.