Changes to fix ajax.