Fixing auto refresh to work with other output