Improved structure of space computation. Sleep a bit to allow gc to run.