Make comptool more deterministic