changed logging and added durationScalar to envelope.