Main functionalities done.