Updated Hosfile functions