Making max argument optional in repeat, repeatLazy, repeatGreedy.