Rename limit variable to avoid shadowing warnings