Removed currentType attribute because that's state and state is bad and
we can do without it apparently.