Fixed link to the sample that this is a port of.