Add package management; limit number of packages; fix comparison with schedule