Updated host to have seperate event handling functions