Add rough delay loop implementation.