Task semaphores and misc other fixes from the field