Removed quad functions.
Insert state.