Added load for loop and draw function.