Removed java.nio, made compatible for java.16