Fixed SimpleExample after API change