Removed unnecessary break statement in range function.