Adding cycle functions.