Add lua ratelimit function first draft