Fixed idleTime and queueTime update, see issue #4