Adding alter hook for modifying items while processing entities.