Added initial block support and looping.