Forked from http://git.oschina.net/lionsoul/friso