Fixed silly condition.
Semaphores, temporary commit.