Template generation more safe
Allow modifying settle time and listener check added