Added control of incoming params passed to write_date