Adding some logging around the pg callback + enforcing some pipeline order