First attempt to implement autoaddfunction