Renamed getVisibilityState to getState