Removed unnecessary PrintWriter and methods
Modified onStatus to (almost) run for a long period of time