Added a name parameter to capture