Added init and destroy methods