# Message Capture Method: Stop Options: Finish After Collecting Messages or When Expression is True

When using the [Message Capture](https://docs.intrepidcs.com/vspy-3-documentation/3.9.14/vehicle-spy-main-menus/main-menu-measurement/vehiclescape-daq/vehiclescape-daq-standalone-logging-tab/standalone-logging-collections-and-methods/collections-and-methods-message-capture-method) method for [Standalone Logging](https://docs.intrepidcs.com/vspy-3-documentation/3.9.14/vehicle-spy-main-menus/main-menu-measurement/vehiclescape-daq/vehiclescape-daq-standalone-logging-tab) within [VehicleScape DAQ](https://docs.intrepidcs.com/vspy-3-documentation/3.9.14/vehicle-spy-main-menus/main-menu-measurement/vehiclescape-daq), selecting **Start immediately** or **Start when expression is true** for the [Start Option](https://docs.intrepidcs.com/vspy-3-documentation/3.9.14/vehicle-spy-main-menus/main-menu-measurement/vehiclescape-daq/vehiclescape-daq-standalone-logging-tab/standalone-logging-collections-and-methods/collections-and-methods-message-capture-method/message-capture-method-start-options) causes the [Stop Options](https://docs.intrepidcs.com/vspy-3-documentation/3.9.14/vehicle-spy-main-menus/main-menu-measurement/vehiclescape-daq/vehiclescape-daq-standalone-logging-tab/standalone-logging-collections-and-methods/message-capture-method-stop-options) to consist of two choices, as shown in Figure 1:

* **Finish after collecting # messages:** Stop logging when the specified number of messages has been collected after the [Start](https://docs.intrepidcs.com/vspy-3-documentation/3.9.14/vehicle-spy-main-menus/main-menu-measurement/vehiclescape-daq/vehiclescape-daq-standalone-logging-tab/standalone-logging-collections-and-methods/collections-and-methods-message-capture-method/message-capture-method-start-options) trigger.
* **Finish when expression is true:** Stop logging when the selected expression is true; use the ![](https://cdn.intrepidcs.net/support/VehicleSpy/assets/Functionbutton.gif) button to build the expression using the [Expression Editor](https://docs.intrepidcs.com/vspy-3-documentation/3.9.14/shared-features-in-vehicle-spy/shared-features-expression-builder).

![Figure 1: The Finish after collecting # messages / Finish when expression is true Stop Options.](https://content.gitbook.com/content/9uNvoSkR7R6QY16gR3CY/blobs/YDzobQDBReJ5K8LuN1nE/spyvssalcollectconfigfinishmsgsexpr.gif)
