Managed cached clients properly, fixed issue refreshing variables in UI.