Simplified leap logic and made comment more relevant