Added basic lifecycle events