Attempting to implement a strategy function macro