Adding progress bar to *apply functions
