Added all the function we need so far.