Simplify the logic - remove extraneous argument and calls to set_close_write_time().