Fixed priority bug, task reset bug, and permanency bug (hopefully).