Created better method for changing hostname, using only internal
functions