Adding selection and file formatting macros.