Adding stuff for csr generation.