Updated to write.asModule