Added host discovery
Changed file open append to open write
Removed textarea rule