Cleaning up formatting.

Avoiding allocating so many objects.

Making some threads sleep a bit more.