Added busy-wait (for testing long execution times).