         self.dataCtrl = dataCtrl
         self.dataView = PVRDataView(db: dataCtrl.DB)
         self.dataViewCtrl = PVRDataController(db: self.dataView)
-        self.scheduleDuration = []
+        self.sch_date = NSDate.distantPast as NSDate
+        self.sch_affinity = true
+        self.schedule = Dictionary<PVRDuration,Array<PVRTask>>()
+        self.setting = (UIApplication.shared.delegate as! AppDelegate).setting
 
         super.init()
     }

    weak var dataCtrl:PVRDataController! /* Link to Data Controller
                                          * NOTE: Will Terminate executable if Missing
                                         */
    var dataViewCtrl:PVRDataController /*Link to Data View Data controller */
    var dataView:PVRDataView /*Link to Data View */

    //Data
    var scheduleDuration:[PVRDuration] /* Schedulable Duration sorted by date until Last Task Date*/

    //Methods
    /*
     * init(datactrl:PVRDataController)

    */
    public func lastTaskDate() -> NSDate
    {
        self.dataCtrl.updateTask()
        self.dataCtrl.pruneTask()

        if let lastTask = self.dataCtrl.sortedTask(sattr: PVRTaskSort.deadline).last
        {
            return lastTask.deadline
