Edit and command states implemented.