I know, it is not the best art to leave a method before the end, but the code was very hard to read when I tried it with if-else conditions.