Use constants instead of #define for parameters

Avoids name conflicts.