A little fix: stop counting if floor is reached.