Added row normalization option.