Merge log.py and org.py into data.py and add custom midnight