Added compatibility library support and debug logs.