Merge "Add additional parameters for the captureLayer functions."