Added formatting function dotify.