Move tweakable paramters to constants at the top, for easier tweaking