Added not looking through branches if it is useless.