Add console messages in lifecycle functions.