Added import, authentication and tests.