Added branch hints
Removed repeat logic