Finishing puppet code