Update: EOT main and control function.