Adjusted the blending function. Added 'd' to enable debugging.