What do the integer parameters stand for? Would it be better to use "enums" so the code is more self-documenting?