Fixed some bugs and added some generic divexacts.