Updated to use 'log' instead of fmt