Added global variables for the keywords
Changed from pre_/post_code to just a single code argument that paste the code into the shell script