Moved recomb to subroutine