It is not exactly the same, because the two functions call out to different functions, so it is not really a dup. Quite similar though..