Added rudimentary simulation support.