Various sequence functions.