Current version of demo code in pic24