Merge "Added LayerCapture args to captureLayers functions"