in reply to Production level script template

I would deal with quite this differently to you. For example: