Changed write_rps and duration.