Added few more debug statements to track priority and wakeup calls