Create capturefn.go