Based off of: http://forum.xda-developers.com/showthread.php?t=2401988