Basic sequece manipulation routines.