Add callback to makeTree