Working except for coming back after leaving the app