Removed the use of deprecated APIs in Tang