Added implementation of table diff