Changed transient handling to avoid overflow

Not going to COMPLETELY avoid overflow, but it should avoid issues for the time being...