Added Enum instead of bool for conext interface creation.
Update sample.