Port to Pandora. Thanks to ptitSeb.
Merge pull request #28 from xsacha/pandora-port

Port to Pandora.