Converting to code blocks