Fix some scope issues in delay node and add rate limiting node