Adding auto-refresh option