Code samples for infiniteloop