Define execute separately from module.exports so the compiler can recognize the type.