You could reuse 'catalogname' from line 151.