Adding main functionalities