Added function evalRecord