Started working on basic rendering state management.