Use platform consts
Minor change
Using code from SDK sample