ADDED: finally a well-working version.