Add types, constants and stub functions