More fastsim fixes.
qsim fixes.