Latest code + phonegap support.