More DRY stuff. Added "ver" argument like in Sofin.