Removed old unused recusive function.