Added Pos.apply based on macro.

Added Pos.apply based on macro.