Add initializer and finalizer to static