Readded try/except block.
Removed infinite loops.
Forgot to include a return for checkApps()
butts