Add support to set the hostname

Good catch :)