Altered the behaviours to accept a double for the elapsedMilliseconds instead of a long.