Playing with app lifecycle stuff.