Add state to services, implement udp as an example service