Autorefreshing added. Fixes #4