Implementation of skip and limit functions.