Implemented indirect capturing