Create two functions