Changes to make the library work with spark core.

Changes to make the library work with spark core.