A Titanium implementation of https://github.com/Sk0rpion/MagicPie