That looks like what i needed. The internets delivers once again. Thanks a lot 😃
Edit: anyone know of anything similar to this from an open-source project, perhaps? I really don't want to work with an encoded script, I like knowing what's going on with it.