I will try, but personally I don't agree to cast $limit with (int) because on some cases, we need big limit....