I like the way you a calling a function within another function. Breaking down your code into reusable, readable functions is good practice.