Profilled and greatly improved perfomance.