Added functions to compare different blocks of data