Uses sprintf for modal generation. Fixes linting.