Init and destroy methods.