Added class to redirect console printouts while active