implemented rule30_loop; now using system time in milliseconds as input