Begin definitions for simulator