Added placeholder to if and made it add only when repeat needs it.