Use built-in logger for better error catching ability