Adding function gethostname