Added app restart capabilities, still needs to clear the count