Should this be in both macros and pigscripts?