Separate renderer function #12