Removed some direct accesses to the 16-bit task structure.