Added gen.h to define general constants.