First version of fillRelatedRows