More error checking
Reverting -Xmx ; was too small. I wonder what a good value would be?