Added waitmax.