Better use of skip function