Add support for write file plugin