Remove read only variables and unused code

Passing in a any of the readonly variables to be set in the parent
process running the script resulted in a "OS: readonly variable" error.