Implemented stall and resume functions which appear to be working.