Added a helper for logging using string.format