Turned on logging
Added ajax method