Added macro running in api