Added services trait and error interfaces.