Added Cycle implementation and header.