Optimized program. No more of the extended stupid wait
remade stuff and destuff