Modeling Time-Varying Dynamical Systems