Break up draw function.