Separated render from calculate.