Simplified the LIMIT condition