Moved set macro to util module.