Added global PAGE_LIMIT variable