Correct shell scipt and macro to be used with 2009 data.