How does life cycle state work?