Fixed the simulation. Now runs perfectly. Need to add non-linearities to this. Will be done tonight.