Cleaned up relatedItem and added nonSort