Implmented more efficient skip algorithm