When macros are involved finding the exact spot for an error can be daunting. Try to refactor the macro code to make errors more explicit.