Removed exception handling.
Fixed simulator.