Added some code to cause pauses in the main thread

This was to test if the runtime would switch to th other thread.