Restored sample app functionality, which somehow got wiped along the way