Added the actual interface methods.
Started adding test cases.