Breaking up code into functions.