Add record processing
Fix unsignedness of negative number