Avoid unnecessary looping