You should probably do this when the module is loaded, rather than on *every* instantiation of the widget...