Change the code for backward compatiblity.