First version extracted from the Icy plugin