Moved xls append code to separate file