Created p_wrapper decorator.