Add @main_host variable
Add $main_host parameter
Correction in add $main_host
Correction in add  $main_host