Added all functionalities.