Generation of cycles.