Console.logging pins in the success function