Obtaining a seamless loop