Adding change logic