Initial commit with working version of the library for API version >= 11.