Stuff for setting up drawing, does not compile