Added more ajax specific code.