Modified library to extend KaneCohen\'s library.