Add chunk_if to enable chunks if boolean is true.