Improved measuring scripts and hotfix Identity.rb error: key size too small