Made cycles random for testing