Programmatically import macros