I have created the following variation of the enabling script above if it would help anyone. I wanted to post this here since the idea and overall structure are not my own, and ethically I don't want to be seen as passing this off as mine. Here is ...