Add prolog file with schedule logic