Relicensed part of the code under GPL v3 license.