Change macros to static variables for the sake of easy tuning.