Broke printHostEntry into functions