Added scheduling code (start at midnight)