Updated pwrapper with *args and **kwargs