Changed link functions to array to allow minification.