Stop variables from increasing when unfocused