Made code block out of script instructions