[WIP] SlimPIE (2/2)

Ported from CM sources