Added ability to accept hosts