Applied several changes

At some point, it is very difficult to find an appropriate value for the
occurrences. Most times, i had to guess them.