Adding basic functions.