No really need to define localhost as global variable