Dynamic implementation is almost complete. Need to implement the 'main'
loop.