Adding .widget to function.