Preparing for ajax stuff.