Added actor to write to files