Modifying code, making everything but reference and rendered output optional