added schedule parameter. Metaparameters for defines do not seem to be handled properly