Use ordered dictionary for attributes when possible