Bugfixes and added another target that records all the captured frames.