Added WARN_UNUSED attribute to critical functions.
Added protocol for partial simulation.