Better REST code.