Rewrote refresh_feeds function.