Added several println's for console debugging.