See [The Work of the Artisan node] Have you studied this method?