Execute scripts only once when input is unchanged