As I found a bug in this code.
Problem : If bed temp reached target before nozzle, it will start printing right away.
Solution : Double check by add code;
M104 S{material_print_temperature} ; start heating nozzle but don't wait
M190 S{material_bed_temperature} ; start heating the bed to target temp and wait
M109 S{material_print_temperature} ; heating nozzle and wait until target temp then start printing