First two functions working.