Added an auto-refresh option, better refreshing.