Fixed small issue with daily tables and got rid of 2 loops in 2of3.