Add function to compact rendering