Added modifications to NGram