Made a litte simplication. Using the time itself as output from the timeline to determine which values can be updated. Just a little logic. The boolean vars are True by default.