Put everything representation-related into render function