Rename size to length, value to code