Added setParent function, modified record definition