Added decorator for calling parallelized intermal functions

Will allow for easy support for different threading models