Fixed Error

Fixed Error where function calls in the simulate function were passing
the dictionary through where it only needs to pass in the value of the
current key.