Added experimental repeat code (not active).