Modify init code to handle const data types.