Adding minimizer, fixing service and debug mode for discover