Use ypcall instead of pcall

Calling a function that needs to yield will not work with pcall. It must be done using ypcall.