Added hosted.c and hosted.h