Add ocelot's source code and Diogo's patch.