Removed legacy codes.