Added inbuilt scheduling in CPAD Companion code.
Fixed bug in CPAD Companion