Added logging for basic errors and completion times.