Added switch to search for today or yesterday, removed only one page check for testing