Value parsing code.