Add logic checks to prevent errors on altering data output.