panel optimization now working, but soooo slow!