Add basic codes to turn this into an addon. UI to be added later.