Cleaned up code from previous rendering attempts