Export Excel functionality. Work in progress.