added optimizations and ability to see results