Added change processing function