Took code out of wrapping function.