Fixed up logic to work for a real WP8.0 app.