Move host stuff into host.c