Modified to pull 500 records