Add conditionals for body_checks and header_checks