Fix some bugs and add transport time.