Adding debug statements.  Having issues running simulation.