Simpllifed code for my Market View