Imported and modified code from last year

The changes I made to the code from last year were intended to make it work with Windows Phone 8.1 as a target.