Added construct relations, tested partitionFromFD