Modified the host side example.