Add an execute function