Optimizied the feeds code for speed and readability