Add debugOnly flag so that the package only activates in development mode