Main functionalities finished