Does not run when unfocused