Migrate to injection of speak and log function