Add record and macro