getMeasures and generateN added