Made possible to use on Java6