Now compiles. Doesn't paint properly.