Init and exit changed to contrusctor and deconstructor.