Add max length to command list