Change example to use $origin.