Removed Listener, changed index.jsp to directly use DataCollector and Powerstate.