Cleanup read_result code
Add roll ntime code