Added render state creation