Added support for legacy semaphores and tasks.