Made first_scaledown_factor an int64_t. Simplifies things.