Funky java stuff.