Added autoset button, fixed periodic checking