Started integrating rabin into main code.