Nitpick suggestion: keep to one line whenever possible. Script is already overly long.