Adjusted scriptlet to handle custom cluster names