Fix for setting tex master.
Make midnight more often