Added mainloop for transport system