Made compatible with Java webapp thing.