Update process to pass object element instead of document