Use 'dorun' to map a function with side effects