Merged loop into branch