Get rid of do notation in functions.