Extracted into lib/host