Still not active but this contains some code needed to do a proper main loop that can work with the networker.