-Fix the problem with success function not being passed in options