Update samples to use latest version 5 of the core.