Life cycle of an extension