Add ability to capture DOM elements