Add cron, time lib & AppMain to control whole application