Updated to handle multiple 'n' values for shared configurations.