Add getConstants() to get list of constants.