Download sharied object function and legacy code removed.