Making it work with 2013 version of the API. Only indexing though. Not Searching.