Added better duration calculation
Updated newrelic gem