Logger is now passed as a parameter