Add `fnctl`, `lstate` related code.