Functions

Has to be reviewed!!