Removed old testing function