Add scheduled tasks

@kof Last review and I'll stop bothering you after that :)