Working fine version (used in the presentation).