Not relevant, but sometimes I hate my code... the "actual_repeat_number" argument is so hacky.