Comments updated now describing the functions behavior.