Use of Kernel.setExplicit(true) and some refactoring