Add recurence calculation