Added support for host parameter

Cf. #162