Moving capture to a plugin