Add more accessors.

-- RMonica
Create one less thread and use the main thread to simulate it.

-- RMonica