Removed old code method.