Backwards compatibility for widgets code.