Modified the example quite a bit.