Drawing hosts separated from parsing file function