Rename previousState property to just previous. Fix sourceMap location.