Add execute handler to struct writer.