Edit render function.