Removed old test function