Made more progress on the addmixin function