Seperate drawing out into two functions for easier profiling.