Fix the KiBaM Function

Now, the simulation times are similar, independently the beacon
interval.
Merge branch 'beta'