Adds rendering functionality