Removed unnecessary passing by ref.  Slight simulation performance improvement.