Add method to strip debugging code in production.