Added J, dJdx fields to tag struct. Added getTagState().