Adding memory control for WP8