Better usage of Java 8 and cleaning of warnings.