Added explicit check for limit()