add max option

As spoken on #17