Updated post recursive to work correctly.