Wrapped PWT data grab into a function.