Removed old method used for tests