Creating macro mts_key