Add check so callback only called once