Cleaned up rendering code