Use constants instead of #define for parameters