Copy of Lava source (http://raintown.org/lava/)