Changed the ptask_init()