Removed Boost dependency in Capture