Added autorefresh
Added cleaning before stuff