Now supports JRE6.
Code simplification.