I apologize for potentially breaking old scripts but this should be much easier to maintain and update.
it