Where does this 1000 come from? Is this a constant that should be hoisted somewhere more global and given a symbolic name?