Added some debugging prints and user-interaction to make use of VisualVM.