Add loop gap feature