Removed legacy function