Added init and deinit snippets