Updated to work on my device.