Handling codes that can have missing values
Fixes #16