Added the first two functions