Working out render code, and testing