Ported SDK sample application 5.