Updated the new functionalities using sml

Updated the new functionalities using sml