Remove getState method.