Added support for manual refresh.