Fixed bug concerning capturing. (returned before assigning to variable...)