Added configuration options for AJAX method