Magic macro library