Define macros for easy record