Added cycles parser and toString methods.