Ported to SoCkit.