Working with ajax calls.