Introduce formats. Closes #26.