Messy version with producer-consumer consideration
Some clean up changes and new calculation of timeoutvalue
Fixed not finished error. Only working with testout
Changed testoutput to false
Fixed invalid rtt issue