Added host interface, removed preloader and changed error handling to use host interface