Edit main, custom capture does not compile