vert.setPeriodic() instead of while(true) sleep.