Adding resources and drawing functionality