Added PositionTarget, GetType and SetType, made some other changes.