Finish off import code. Add basic functionality.