Added all needed basic functions